package com.wn.inventory.feign;

import com.wn.common.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @ author     ：NST
 * @ date       ：Created in 2022/10/28 11:59
 * @ description：远程调用activiti流程模块
 * @ modified By：
 * @ version:
 */
@FeignClient(value = "activiti")
public interface ActivitiFeignClient {
    @RequestMapping("/activiti/startInstance")
    ResponseEntity startInstance(@RequestBody ActivitiStartEntity entity);

    @RequestMapping("/activiti/completeTask")
    ResponseEntity completeTask(@RequestBody ActivitiCompleteEntity entity);

    @RequestMapping("/activiti/historyInfo")
    ResponseEntity<List<ActivitiInstanceHistory>> historyInfo(@RequestBody ActivitiHistoryInfoEntity entity);

    @RequestMapping("/activiti/historyInfoList")
    ResponseEntity<List<List<ActivitiInstanceHistory>>> historyInfoList(@RequestBody List<ActivitiHistoryInfoEntity> entityList);
}
